/*
 * @Author: 张小平
 * @Date:   2025-05-01 
 * @Email:  qqshuqian@163.com 
 * @Copyright © 2024 aseyun. All rights reserved.
 */
import { createRouter, createWebHistory } from 'vue-router';
import PageRouter from './page/'
import PageRouterOther from '@/routerpage'
import ViewsRouter from './views/'
import AvueRouter from './avue-router';
import i18n from '@/framework-core/lang'
import Store from '@/framework-core/store/'
//创建路由
const Router = createRouter({
  base: import.meta.env.VITE_APP_BASE,
  history: createWebHistory(),
  routes: [...PageRouter,...PageRouterOther, ...ViewsRouter]
})
AvueRouter.install({
  store: Store,
  router: Router,
  i18n: i18n
});

Router.$avueRouter.formatRoutes(Store.getters.menu, true);

export default Router
